@use "@/styles/root.scss";
@use "@/styles/apps/appcontainer.scss";

@font-face {
  font-family: 'doc';
  src: url('./fonts/doc.ttf');
}

* {
  font-family: doc serif;
  font-size: 14px;
}

// ############      桌面背景图     ############################################################

.deskTopBackground {
  position: absolute;
  z-index: -10;
  height: 100vh;
  width: 100vw;
  background-color: #ccccee;

  .deskTopBackgroundImg {
    position: absolute;
    height: 100vh;
    width: 100vw;
    object-fit: cover;
    overflow: hidden;
  }

}


// ############      桌面     ############################################################


.vue-grid-layout {
  // 背景透明
  background: rgba(255, 255, 255, 0);
  //background-image: url("@/assets/deskImg.jpg");
  //background-repeat: no-repeat;
  //background-size: cover;
  //min-width: 1000px;
}

.vue-grid-item {

  .deskIcon {
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;

    &:hover {
      background-color: rgba(233, 231, 201, 0.5);
      backdrop-filter: blur(2px);
    }
  }
}

.vue-grid-item.vue-grid-placeholder {
  // 不显示移动桌面图标的底部placeholder块
  display: none;
}


// ############      底部程序坞     ############################################################

.deskTopApplicationDock {
  //相对定位，作为后续程序坞的父容器
  position: relative;


  .dockContainer {
    position: absolute;
    z-index: 50;
    top: calc(100vh - 70px);
    left: 50px;
    height: 60px;
    width: calc(100vw - 100px);
    min-width: 900px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 5px 5px 20px #b4b4b4;
    border-radius: 5px;
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;


    .dock {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      margin: 10px;
    }


    .leftDock {
      width: 140px;

      .allApp {
        height: 40px;
        width: 40px;
        border-radius: 20px;
        background-color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;

        img {
          width: 20px;
        }
      }

      .notification {
        height: 40px;
        width: 80px;
        border-radius: 20px;
        background-color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }


    .centerDock {


      .app {
        margin-left: 5px;
        margin-right: 5px;
        height: 40px;
        width: 40px;
        border-radius: 20px;
        background-color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;

        img {
          width: 20px;
        }

        .dot {
          position: absolute;
          height: 4px;
          width: 4px;
          border-radius: 2px;
          background-color: #ffffff;
          top: 44px;
        }
      }
    }


    .rightDock {
      width: 140px;

      .timeMessage {
        height: 40px;
        width: 80px;
        border-radius: 20px;
        background-color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .status {
        height: 40px;
        width: 40px;
        border-radius: 20px;
        background-color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;

        img {
          width: 20px;
        }
      }
    }
  }
}


// ############      程序坞弹出页     ############################################################


// ############      app容器     ############################################################

.AppContainer {
  position: relative;
}
// ############      自定义右键菜单     ############################################################

.customContentMenu {
  position: relative;
  z-index: 80;
}




